//
//  XMLReader.h
//  KOFY
//
//  Created by Warren Holybee on 12/1/10.
//  Copyright 2010 Warren Holybee. All rights reserved.
//

// Not implemented, other than creating fake data for the survey
// XMLParser will parse XML from BIM, or another source for the questions
// It will eventually also submit (in the form of XML or something else)
// the answers back to BIM

#import <Foundation/Foundation.h>
#import "Question.h"

@interface XMLReader : NSObject <NSXMLParserDelegate> {
	NSMutableArray *_survey;
	NSString *_KofyClubURL;
	NSString *_TwitterFeed;
	Question *_newQuestion;
	BOOL inQuestion;
	int elementType;
	NSMutableString *_newQuestionString;
	NSMutableString *_newAnswerString;
	NSXMLParser *xmlParser;

}
@property (nonatomic, retain) NSMutableArray *survey;
@property (nonatomic, retain) NSString *KofyClubURL;
@property (nonatomic, retain) NSString *TwitterFeed;
@property (nonatomic, retain) Question *newQuestion;
@property (nonatomic, retain) NSMutableString *newQuestionString;
@property (nonatomic, retain) NSMutableString *newAnswerString;


-(void)initWithURL:(NSString *)url;
-(void)createFakeData;

@end
